home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11201 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mer-news.ctron.com!vo
  2. From: vo@ctron.com (Huy Vo)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: compilers
  5. Date: 21 Mar 1996 22:19:08 GMT
  6. Organization: Cabletron Systems Inc.
  7. Message-ID: <4iskksINNqu4@mer-news.ctron.com>
  8. References: <4iburm$aps@airdmhor.gen.nz>
  9. Reply-To: vo@porthos.ctron.com (Huy Vo)
  10. NNTP-Posting-Host: porthos.ctron.com
  11.  
  12. In article <4iburm$aps@airdmhor.gen.nz> gumboot@airdmhor.gen.nz (Simon Hosie) writes:
  13. >  Does anyone know of a compiler that can take
  14. >
  15. >for (;;)
  16. >{
  17. >    Stuff(1);
  18. >    if (Cond)
  19. >        break;
  20. >    Stuff(2);
  21. >}
  22. >  and make
  23. >goto EntryPoint;
  24. >do
  25. >{
  26. >    Stuff(2);
  27. >EntryPoint:
  28. >    Stuff(1);
  29. >} while (Cond);
  30.  
  31.  
  32.                                                                  
  33.                                                                  
  34.                                                                  
  35.                                                                  
  36. If you don't like for(;;) and stuff() is simply a function call
  37.  
  38. for (stuff(1); !Cond; ) {
  39.     stuff(2);
  40.     stuff(1);
  41. }
  42.  
  43.                                                                  
  44.                                                                  
  45.                                                                  
  46.                                                                  
  47.  
  48.  
  49.  
  50.  
  51. -- 
  52.     Huy Vo
  53.     vo@ctron.com
  54.